package com.fbs.job.admin.mapper;

import com.fbs.job.admin.core.entity.FbsJobUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface JobUserMapper {
    FbsJobUser getByUserName(@Param("username") String username);

    List<FbsJobUser> pageList(@Param("offset") int offset,
                                     @Param("pagesize") int pagesize,
                                     @Param("username") String username,
                                     @Param("role") int role);
    int pageListCount(@Param("offset") int offset,
                             @Param("pagesize") int pagesize,
                             @Param("username") String username,
                             @Param("role") int role);

    int save(FbsJobUser fbsJobUser);

    int update(FbsJobUser fbsJobUser);

    int delete(@Param("id") int id);
}
